package cn.keniykey.mc.viewlibrary.view.api;

import javax.annotation.Nullable;

public final class FrameViewIntent {
	private FrameViewBundle intent_bundle;
	
	volatile AbFrameView view_before,view_after;
	Class<? extends AbFrameView> clazz_targetview;
	int requestcode = -1;

	public FrameViewIntent(Class<? extends AbFrameView> clazz_targetview1) {
		this.clazz_targetview = clazz_targetview1;
	}
	
	public void putExtras(@Nullable FrameViewBundle bundle) {
		this.intent_bundle = bundle;
	}
	@Nullable
	public FrameViewBundle getExtras() {
		return this.intent_bundle;
	}
	public boolean hasExtras() {
		return (null != this.intent_bundle);
	}
	
	public boolean isBeforeViewIntent() {
		return (null == this.view_before);
	}
}